package cn.a592n.weightlibs;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.inject(this);
    }

    @OnClick({R.id.btn_sbr_, R.id.btn_sbr_pull_down})
    public void onViewClicked(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.btn_sbr_:
                intent.setClass(MainActivity.this, SbrActivity.class);
                break;
            case R.id.btn_sbr_pull_down:
                intent.setClass(MainActivity.this, PullDownActivity.class);
                break;
        }
        startActivity(intent);
    }
}
